DEF_PROJECT=../../..
include $(DEF_PROJECT)/scripts/main.mk
name=gzip
version=1.5
prefix=/usr
destdir=$(DIR_SYSROOT)
extdeps=eglibc-tools gcc-tools binutils-tools linux-header-tools

DL_SERV=http
DL_HOST=ftp.gnu.org
DL_PATH=gnu/$(name)
DL_SUFFIX=tar.gz

cflags+=--host=$(CC_TARGET)
cflags+=--build=$(CC_HOST)
cflags+=--bindir=/bin

post-build:
	$(MAKE) -C $(if $(build),$(build),$(source)) $(iflags)
	mv $(destdir)/bin/z{egrep,cmp,diff,fgrep,force,grep,less,more,new} $(destdir)/usr/bin
